<extend  name="Public:base" />
<block name="title">首页</block> 
<block name="style">
	<style type="text/css"> 
	</style>
</block>
<block name="content"> 
	
	<ol class="breadcrumb">
	  <li><a href="__CONTROLLER__/index">内容管理</a></li> 
	  <li class="active">{$title}</li>
	</ol>  
	<form action="__CONTROLLER__/save_data" method="post" class="form-horizontal">
			<input type="hidden" name="article_id" value="{$info.article_id}" />
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">标题</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="title" value="{$info.title}" id="inputtext" placeholder="标题">
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">作者</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="author" value="{$info.author}" id="inputtext" placeholder="作者">
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">描述</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control"  name="desc" value="{$info.desc}" id="inputtext" placeholder="描述">
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">分类</label>
			    <div class="col-sm-8">
			    	<select name="classify_id" id="" class="form-control">
			    		<foreach name="class" item="val">
			    			<option value="{$val.classify_id}" {$info['classify_id'] == $val['classify_id']?'seleced':''}>{$val.classify_name}</option>
			    		</foreach>
			    	</select>
			    </div>
			    <div class="col-sm-2"><a href="__CONTROLLER__/add_classify" class="btn btn-info">添加分类</a></div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">内容</label>
			    <div class="col-sm-10">
			    	<textarea name="content" id="" class="form-control" cols="30" rows="10">{$info.content}</textarea>
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2">
					<button class="btn btn-info">保存</button>
					<a href="javascript:history.back()" class="btn btn-default">上页</a>
				</div>
			</div>
		</form>
</block>
